package com.itheima.service;

/**
 * @author SWJ
 * @create 2021-08-12 23:11
 */

//CheckItemServiceImpl实现类

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.CheckItemDao;
import com.itheima.pojo.CheckItem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

/**
 * 检查项服务
 */
@Service(interfaceClass = CheckItemService.class)

//添加service实现类
@Transactional
//添加事物
public class CheckItemServiceImpl implements CheckItemService {
    //实现CheckItemService接口
    @Autowired
    //spring 工厂进注入文件
    private CheckItemDao checkItemDao;
    //进行新增检查项目

    public void add(CheckItem checkItem) {
        checkItemDao.add(checkItem);
    }
}
